home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: ERA.COM!era!spencer
- From: spencer@ERA.COM (Spencer Allain)
- Subject: Re: Undefined behavior? on type conversion, was: Re: Hungarian notation
- In-Reply-To: tknarr@xmission.com's message of 7 Feb 1996 03: 43:44 GMT
- Message-ID: <SPENCER.96Feb7092147@zorgon.ERA.COM>
- Sender: news@ERA.COM
- Organization: Engineering Research Associates, Vienna, VA
- References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl>
- <4er2qo$h2s@galaxy.ucr.edu> <31118641.6802368@nntp.ix.netcom.com>
- <4eurpq$b75@news.xmission.com> <31137427.133220928@nntp.ix.netcom.com>
- <4f975g$g18@news.xmission.com>
- Date: Wed, 7 Feb 1996 14:21:47 GMT
-
- In article <4f975g$g18@news.xmission.com> tknarr@xmission.com ( Todd Knarr ) writes:
-
- In <31137427.133220928@nntp.ix.netcom.com>, miker3@ix.netcom.com (Mike Rubenstein) writes:
- >No, I can't tell that you read the standard conservatively. You seem
- >to be adding things that just aren't there. You're saying that
-
- The thing is, I don't recall anything in the standard where "result"
- precludes side-effects. So, I don't assume there is such a prohibition.
- I may be wrong, but if I am I probably won't break code because of it.
-
- >The standard does not say that a machine must have the ability to do
- >multiplication either. That doesn't mean that an implemenation can
- >simply give an exception if you do a multiplication -- it must handle
- >it in software since the standard requires a C implementation be able
- >to do multiplication.
-
- Except that it does require multiplication to be done, and it does
- leave the results of things like overflow up to the application. Ditto
- the result of / when the second operand is 0.
-
- Unfortunately, for the last few weeks I've been doing the antithesis
- of language-lawyering. I'm going to drop this until I can dig the
- right books out from under the piles ( I hate RTFB references ).
-
- --
- Todd Knarr : tknarr@xmission.com | finger for PGP public key
- | Member, USENET Cabal
-
- Seriously, I don't want to die just yet. I don't care how
- good-looking they are, I! don't! want! to! die!"
- -- Megazone ( UF1 )
-
-
- Yeah, I know, I haven't added anything, but if you look at the newsgroups
- line it no longer includes Ada, Eiffel, Modula-3, C++, etc. since this
- is strictly a C specification issue. Please reply to this message and
- continue this thread of discussion -- just not in all the other
- newgroups :-)
-
- -Spencer
-
- ----------------------------------------------------------------------
- Spencer Allain E-mail: spencer@era.com
- Engineering Research Associates Phone : (703) 734-8800 x1414
- 1595 Spring Hill Road Fax : (703) 827-9411
- Vienna, VA 22182-2235
-
- Ask me why _NOT_ to buy anything from Royal Prestige, a Hycite Co.
- ----------------------------------------------------------------------
- <A HREF=http://www.research.digital.com/SRC/modula-3/html/home.html>
- Modula-3 Home Page DEC SRC</A>
- <A HREF=http://www.vlsi.polymtl.ca/m3/>Modula-3 FAQ, etc. </A>
- ----------------------------------------------------------------------
-